﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.DataBase.Domain
{
    /// <summary>
    /// 商品表
    /// </summary>
    public class Product : BaseEntity
    {
        /// <summary>
        /// 商品信息主键
        /// </summary>
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 批次Id
        /// </summary>
        public string BatchId { get; set; } 

        /// <summary>
        /// 保质期(天)
        /// </summary>
        public int KeepSafe { get; set; }

        /// <summary>
        /// 生产许可证
        /// </summary>
        public string Permission { get; set; }

        /// <summary>
        /// 生产企业
        /// </summary>
        public string FirmName { get; set; }

        /// <summary>
        /// 信息完整度
        /// </summary>
        public int Full { get; set; }

        /// <summary>
        /// 商品外键
        /// </summary>
        public int ProductId { get; set; }
        /// <summary>
        /// 封面图
        /// </summary>

        public string? Image { get; set; }
        /// <summary>
        /// 逻辑删除
        /// </summary>
        public bool IsDeleted { get; set; }
    }

}
